package br.com.fitness.infrastructure;

import java.io.Serializable;
import java.util.List;

import br.com.fitness.core.AbstractEntity;

public interface AbstractRepository<T extends AbstractEntity, E extends Serializable> {
	
	void persist(T entity);

	void update(T entity);

	T findById(E id);

	void delete(T entity);

	List<T> list();

}